package com.smartcity.utils;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Data
@Setter
@Getter
@EqualsAndHashCode(callSuper = true)
public class BizException extends RuntimeException  {
    private static final long serialVersionUID = 1L;

    /**
     * 错误信息
     */
    protected String errorMsg;

    public BizException() {
        super();
    }
    public BizException(String message, Throwable cause) {
        super(message, cause);
        this.errorMsg = message;
    }

}